package net.oschina.tedking.tedplay.common.util;

import org.apache.commons.collections4.MapUtils;

import java.util.Map;

/**
 * Map 工具类
 * Created by TedKing on 2017/4/9.
 */
public class MapUtil {
    /**
     * 判断map是否为空
     * @param map
     * @return
     */
    public static boolean isEmpty(Map<?, ?> map) {
        return MapUtils.isEmpty(map);
    }

    /**
     * 判断map是否不为空
     * @param map
     * @return
     */
    public static boolean isNotEmpty(Map<?, ?> map) {
        return MapUtils.isNotEmpty(map);
    }
}
